"""
配置文件，配置某些通用变量
"""

class global_var:
    """
    保存全局变量的类
    """
    server_ip = "localhost"
    server_port = 9999

def set_server_ip(ip):
    global_var.server_ip = ip


def get_server_ip() -> str:
    return global_var.server_ip


def set_server_port(port):
    global_var.server_port = port


def get_server_port():
    return global_var.server_port

